//
// Created by ole on 24-8-17.
//

#ifndef MESSAGERECEIVER_H
#define MESSAGERECEIVER_H
#include "Message.h"


class MessageReceiver {
public:
    virtual ~MessageReceiver() = default;

    virtual void onReceived(const std::shared_ptr<Message> &intent) {
    };
};

struct BroadcastReceiverHash {
    std::size_t operator()(const std::shared_ptr<MessageReceiver> &broadcastReceiver) const {
        return std::hash<void *>()(broadcastReceiver.get());
    }
};


#endif //MESSAGERECEIVER_H
